package com.lzhsite.technology.designPattern.decorate.CoffeeDemo;

public abstract class Decorator implements IComponent
{
    private IComponent component;

    public void setComponent(IComponent component)
    {
        this.component = component;
    }

    public void showCoffee()
    {
        component.showCoffee();
    }

    public double showPrice()
    {
        return component.showPrice();
    }
}
